out_kinesis_streams: increase PUT_RECORDS_PAYLOAD_SIZE to 10MB#11848
Conversation
- Increase size from 5MB -> 10MB to match recent changes with PutRecords API Signed-off-by: Shelby Hagman <shelbyzh@amazon.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR increases the Kinesis plugin's maximum PutRecords payload size from 5 MiB to 10 MiB and adds three runtime tests that validate event-size boundary behavior: an event just under the limit, an oversized event expected to be discarded, and an oversized event with backslash escapes to exercise special-character handling. ChangesKinesis Payload Size Increase and Event-Size Boundary Tests
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/runtime/out_firehose.c`:
- Around line 789-793: The variable declaration "size_t boundary" must be moved
from mid-block into the top of the function’s declaration section; declare
"size_t boundary = MAX_EVENT_SIZE - 1;" alongside the other local variable
declarations at the start of the function, then use that variable in the
existing logic that sets large_json[boundary] and large_json[boundary + 1] when
checking "if (boundary + 1 < total_len - suffix_len)". Ensure no other
references rely on a narrower scope so compilation and behavior remain
unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: a2b7b2f1-1a61-4a5a-88ec-61e525b12e75
📒 Files selected for processing (2)
plugins/out_kinesis_streams/kinesis_api.htests/runtime/out_firehose.c
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 673f5b201e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
673f5b2 to
c2fec52
Compare
Signed-off-by: Shelby Hagman <shelbyzh@amazon.com>
c2fec52 to
cf8e1b4
Compare
Kinesis Streams PutRecords API change in 2025 to support events up to 10MB (ref) while our defaults reflect the older value 1MB.
Add runtime tests to validate the new limit:
event_size_near_limit: Validates events just under 10MB are accepted
event_size_at_aws_max: Validates events near AWS max are discarded (existing behavior)
event_truncation_with_backslash: Validates backslash handling at truncation boundary
Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
Logs: https://gist.github.com/ShelbyZ/0c8d005d39ddc8759cf6b77d7dc90dc5
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-testlabel to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.
Summary by CodeRabbit